package com.supercube.sport.yoga.service.impl;

import com.supercube.common.utils.StringUtils;
import com.supercube.sport.yoga.dao.EmpSalaryDesignMapper;
import com.supercube.sport.yoga.dao.SalaryDesignMapper;
import com.supercube.sport.yoga.dao.SalaryGradientMapper;
import com.supercube.sport.yoga.domain.EmpSalaryDesignDTO;
import com.supercube.sport.yoga.domain.SalaryDesignDTO;
import com.supercube.sport.yoga.domain.SalaryGradientDTO;
import com.supercube.sport.yoga.service.EmpSalaryDesignService;
import com.supercube.sport.yoga.service.SalaryDesignService;
import com.supercube.sport.yoga.vo.EmpSalaryDesignVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class EmpSalaryDesignServiceImpl implements EmpSalaryDesignService {

    @Autowired
    EmpSalaryDesignMapper empSalaryDesignMapper;


    @Override
    public int save(EmpSalaryDesignDTO dto) {
        return empSalaryDesignMapper.insert(dto);
    }

    @Override
    public int update(EmpSalaryDesignDTO dto) {
        return empSalaryDesignMapper.updateByEmpId(dto);
    }

    @Override
    public int delete(String id) {
        return 0;
    }

    @Override
    public EmpSalaryDesignVO queryEmpSalaryDesignByEmpId(Long empId) {
        return empSalaryDesignMapper.selectEmpSalaryDesignByEmpId(empId);
    }
}
